<?php
use Zend\Session\Container;
$SESSION = new Container('user');
?>
<!DOCTYPE html>
<html>

<body>
			
<!--CONTENT SECTION START-->

<div id="main-wrapper-sec">

<section>

	<!--INNER MAIN TITLE SECTION START-->

    <h2 class="inner-main-title pr-title">login</h2>
    
    <!--INNER MAIN TITLE SECTION END-->
    
    <!--CONTENT MAIN SECTION START-->
    
  <div class="content-main-sec">
  
  <!--INNER CONTENT LEFT MENU SECTION START-->
  
  <ul class="inner-left-menu-sec">
    <?php include('leftmenu.phtml');?>
  </ul>
  
  <!--INNER CONTENT LEFT MENU SECTION END-->
  
  <!--INNER CONTENT RIGHT SECTION START-->
  
  <article class="inner-cont-right-sec">
  
  <h1 class="inner-cont-title">Payments</h1>
  
  <ul class="acc-sd-sec">
  <li class="mp-but-sec">
  <div class="cb-sec"><span class="blue">Current Balance  :</span>   $<?php if(isset($data['infoCustomers'][0]['money'])){
						      $money=explode(".",$data['infoCustomers'][0]['money']);
							  if(strlen($money[1])>2){ 
							  $a=substr($money[1], 0,2);
							  $z=$money[0].".".$a; 
							  echo $z;}else{
							  $z=$money[0].".0"; 
							  echo $z;
							  } }else{
							  echo '0';} ?></div>
  <div class="pa-st-sec"><a class="payment_h" href="<?php echo $this->url('payment-history', array('action' => 'payment-history')); ?>"><img src="<?php echo $this->basePath(); ?>/images/package-history-icon.png">Payment History</a></div>
  </li>
  </ul>
  
  <div class="clear"></div>
  
  <!--PAYMENT METHODS SECTION START-->
  <!--
  <article class="payment-mt-sec">
  <div class="bor-bt"></div>
  <aside class="active">
  <b>1</b>
  <span class="display">Step One</span>  </aside>
  
  <aside>
  <b>2</b>
  <span class="display">Step two</span>  </aside>
  
  </article>
  -->
  </br></br>
  <!--PAYMENT METHODS SECTION END-->
  
  <div class="clear"></div>
  
  <!--PAYMENT FIELDS SECTION START-->
  
  <article class="pt-fields-sec">
  
  <h1 class="inner-cont-title">Choose Payment</h1><br/>
  <h6 class="pt-sub-title">
	  <cite class="img_city">
		 <input name="radio" checked='checked' type="radio" value=""><img src="<?php echo $this->basePath(); ?>/images/paypal-icon.jpg">
	  </cite> 
	  <cite class="img_city">
		 <input disabled name="radio" type="radio" value=""><img src="<?php echo $this->basePath(); ?>/images/visa.jpg">
	  </cite>
  </h6>
  <aside class="dc-sec"><h4>
  <p class="pay_r"><input type="radio" value="20"  checked='checked' id="payAmount" name="payAmount" onclick="amountValue(20)" />$20</p>
  <p class="pay_r"><input type="radio" value="50"  id="payAmount" name="payAmount" onclick="amountValue(50)" />$50</p> 
  <p class="pay_r"><input type="radio" value="100" id="payAmount" name="payAmount" onclick="amountValue(100)" >$100</p>
  <p class="pay_r"><input type="radio" value="150" id="payAmount" name="payAmount" onclick="amountValue(150)" >$150</p>
  <p class="pay_r"><input type="radio" value="200" id="payAmount" name="payAmount" onclick="amountValue(200)" >$200</p>
  <p class="pay_r"><input type="radio" value="300" id="payAmount" name="payAmount" onclick="amountValue(300)" >$300</p>
  <p class="pay_r"><input type="radio" value="500" id="payAmount" name="payAmount" onclick="amountValue(500)" >$500</p>
  </aside>
  <ul class="login-form-sec">
	  <li>
			<form action="<?php echo $paypalUrl;?>" method="post" id="paypal-payment-form" accept-charset="UTF-8">  
				<input type="hidden" name="cmd" value="_xclick">
				<input type="hidden" name="business" value="<?php echo $paypalid;?>">
				<input type="hidden" name="amount" id="amount" value="1.1">
				<input type="hidden" name="custom" value="1"/>			
				<input type="hidden" name="no_note" value="1">
				<input type="hidden" name="currency_code" value="USD">
				<input type="hidden" name="item_name" value="IPTEL_USER">
				<input type="hidden" name="item_number" value="<?php echo $SESSION['loginNum2']; ?>" />
				<input type="hidden" name="return" value="<?php echo $baseUrl; ?>/payments-2">
				<input type="hidden" name="cancel_return" value="<?php echo $baseUrl; ?>/payments">
				<input type="hidden" name="rm" value="2">
				<input  class="pay_r_sub" type="submit" value="continue">
			</form>
		</li>
  </ul>
  </article>
  
  <!--PAYMENT FIELDS SECTION END-->
  
  <div class="clear"></div>
  

  </article>
  
  <!--INNER CONTENT RIGHT SECTION END-->
  
  </div>
  
  <!--CONTENT MAIN SECTION END-->
  
  <div class="clear"></div>
  
  <!--CLIENTS AREA SECTION START-->
  
  <aside class="content-main-sec ot-lg-sec"> <img src="<?php echo $this->basePath(); ?>/images/truste.jpg" alt=""> <img src="<?php echo $this->basePath(); ?>/images/secured.jpg" alt=""> <img src="<?php echo $this->basePath(); ?>/images/mcafeev.jpg" alt="">
    <h3 class="otg-title">Trusted. Safe. Reliable.</h3>
  </aside>
  
  <!--CLIENTS AREA SECTION END-->
  
  <div class="clear"></div>
  
</section>

</div>

<!--CONTENT SECTION END--> 

</body>
</html>
<script>
function amountValue(id){
	$('#amount').val(id);
}

</script>